<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>Signup confirmation</title>
</head>
<body>
<g:if test="${flash.message}">
  <h1>Signup confirmation</h1>
  <div class="message">${flash.message}</div>
</g:if>
<g:render template="/common/eventDetailTable"/>
<div class="body">
  <h1>Position Details</h1>
  <table>
    <tbody>
    <tr class="prop">
      <td valign="top" class="name">Name:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'name')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">Description:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'description')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">Number Of Volunteers:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'numberOfVolunteers')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">Start Date:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'startDate')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">End Date:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'endDate')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">Location:</td>
      <td valign="top" class="value">${fieldValue(bean: eventPositionInstance, field: 'location')}</td>
    </tr>
    <tr class="prop">
      <td valign="top" class="name">Volunteers:</td>
      <td valign="top" style="text-align:left;" class="value">
        <ul>
          <g:each var="v" in="${eventPositionInstance.volunteers}">
            <li><g:link controller="volunteer" action="show" id="${v.id}">${v?.encodeAsHTML()}</g:link></li>
          </g:each>
        </ul>
      </td>
    </tr>
    </tbody>
  </table>
  <div class="buttons">
    <g:form controller="event">
        <input type="hidden" name="id" value="${eventInstance?.id}" />
        <span class="button"><g:actionSubmit action="show" value="Back to event" /></span>
    </g:form>
  </div>
</div>
</body>
</html>
